esprit-2013-1a2-high-octane
version one
finale
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
perso.h
1
#ifndef PERSO_H_INCLUDED
2
#define PERSO_H_INCLUDED
3
#include <allegro.h>
4
#include <stdio.h>
5
#include <stdlib.h>
6
#include"background.h"
7
#include "collision.h"
8
#include "jennyfer.h"
9
#define GFX_W 642
10
#define GFX_H 450
11
15
struct
clef
16
{
17
BITMAP *
CLE
[1];
18
int
x,
y
;
19
};
20
typedef
struct
clef
clef
;
21
26
struct
file
27
{ BITMAP *
FILE
[1];
28
int
x,
y
;
29
int
direction
;
30
};
31
typedef
struct
file
file
;
32
37
struct
barre1
38
{
39
BITMAP *
BR1
[1];
40
int
x,
y
;
41
int
direction
;
42
} ;
43
44
typedef
struct
barre1
barre1
;
50
struct
barre2
51
{
52
BITMAP *
BR2
[1];
53
int
x,
y
;
54
int
direction
;
55
} ;
56
57
typedef
struct
barre2
barre2
;
62
struct
barre
63
{
64
BITMAP *
BR
[1];
65
int
x,
y
;
66
int
direction
;
67
} ;
68
69
typedef
struct
barre
barre
;
75
struct
rat
76
{
77
BITMAP *
RAT
[2];
78
int
x,
y
;
79
int
direction
;
80
} ;
81
82
typedef
struct
rat
rat
;
83
84
// barre
85
void
load_barre
(
barre
*
barre
);
86
void
destroy_barre
(
barre
*
barre
);
87
void
init_barre
(
barre
*
barre
);
88
void
col_barre
(BITMAP *Buffer,
barre
*
barre
,
jennyfer
*jenn);
89
void
move_barre_down
(
barre
*
barre
);
90
void
move_barre_up
(
barre
*
barre
);
91
void
move_barre
(
barre
*
barre
);
92
void
draw_barre
(
barre
barre
,BITMAP *Buffer);
93
void
verifdirr
(
barre
*
barre
) ;
94
void
barreD
(
jennyfer
* jenn,
int
*br,BITMAP *Buffer);
95
//barre2
96
void
load_barre2
(
barre2
*
barre2
);
97
void
destroy_barre2
(
barre2
*
barre2
);
98
void
init_barre2
(
barre2
*
barre2
);
99
void
col_barre2
(BITMAP *Buffer,
barre2
*
barre2
,
jennyfer
*jenn);
100
void
move_barre2_down
(
barre2
*
barre2
);
101
void
move_barre2_up(
barre2
*
barre2
);
102
void
move_barre2
(
barre2
*
barre2
);
103
void
draw_barre2
(
barre2
barre2
,BITMAP *Buffer);
104
void
veri
(
barre2
*
barre2
) ;
105
106
//barre1
107
void
col_barre1
(BITMAP *Buffer,
barre1
*
barre1
,
jennyfer
*jenn);
108
void
load_barre1
(
barre1
*
barre1
);
109
void
destroy_barre1
(
barre1
*
barre1
);
110
void
init_barre1
(
barre1
*
barre1
);
111
void
move_barre1_left
(
barre1
*
barre1
);
112
void
move_barre1_right
(
barre1
*
barre1
);
113
void
move_barre1
(
barre1
*
barre1
);
114
void
draw_barre1
(
barre1
barre1
,BITMAP *Buffer);
115
void
verifd
(
barre1
*
barre1
) ;
116
//file
117
void
col_file
(BITMAP *Buffer,
file
*
file
,
jennyfer
*jenn);
118
void
load_file
(
file
*
file
);
119
void
destroy_file
(
file
*
file
);
120
void
init_file
(
file
*
file
);
121
void
move_file_left(
file
*
file
);
122
void
move_file_right
(
file
*
file
);
123
void
move_file
(
file
*
file
);
124
void
draw_file
(
file
file
,BITMAP *Buffer);
125
void
verif
(
file
*
file
) ;
126
// rat
127
128
void
load_rat
(
rat
*
rat
);
129
void
destroy_rat
(
rat
*
rat
);
130
void
init_rat
(
rat
*
rat
);
131
void
move_rat_right
(
rat
*
rat
);
132
void
move_rat_left
(
rat
*
rat
);
133
void
move_rat
(
rat
*
rat
);
134
void
draw_rat
(
rat
rat
,BITMAP *Buffer);
135
void
verifdirre
(
rat
*
rat
) ;
136
// cle
137
138
void
load_clef
(
clef
*
clef
);
139
void
destroy_clef(
clef
*
clef
);
140
void
init_clef
(
clef
*
clef
);
141
void
cle
(
clef
*
clef
,
jennyfer
*jenn ,
int
*CLEE);
142
void
draw_clef
(
clef
clef
,BITMAP *Buffer,
int
*CLEE);
143
144
#endif // PERSO_H_INCLUDED
Generated on Thu May 23 2013 08:18:22 for esprit-2013-1a2-high-octane by
1.8.1.2